local skel = fk.CreateSkill{
  name = "tea__fenyuan_viewas",
}
--local U = require "packages/utility/utility"
Fk:loadTranslationTable{
  ["tea__fenyuan_viewas"] = "焚缘",
  [":tea__fenyuan_viewas"] = "焚缘",
}
---@type ViewAsSkillSpec
local fenyuan_viewas = {
  mute = true,
  card_filter = function (self, player, to_select, selected, selected_targets)
    return #selected == 0 and table.contains(player:getCardIds("h"), to_select)
  end,
  view_as = function (self, player, cards)
    if #cards ~= 1 then return end
    local c = Fk:cloneCard("unexpectation")
    c.subcards = cards
    c.skillName = skel.name
    return c
  end
}
skel:addEffect("viewas", fenyuan_viewas)
return skel